//用户相关所有请求
import { request } from "@/utils";


//1.登录请求

function loginApi(loginForm){
   return request({
        url:'/authorizations',
        method:"POST",
        data:loginForm
    })
}

//2.获取用户信息
function getUserInfo(){
    return request({
         url:'/user/profile',
         method:"Get"
     })
 }


export {
    loginApi,
    getUserInfo
}